package org.victoria.market.domain;

import org.apache.ibatis.type.Alias;
import org.apache.solr.client.solrj.beans.Field;

import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * Created by thanatos on 15-9-13.
 */
@Alias("Goods")
public class Goods {

    //field
    private Long id;
    private String title;
    private String brand;
    private String label;
    private String store;
    private String images;
    private String keywords;
    private float price;
    private Date createOn;
    private int comment;

    //many to many
    private List<Category> categories;


    //get and set
    public List<Category> getCategories() {
        return categories;
    }

    public void setCategories(List<Category> categories) {
        this.categories = categories;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getStore() {
        return store;
    }

    public void setStore(String store) {
        this.store = store;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public Date getCreateOn() {
        return createOn;
    }

    public void setCreateOn(Date createOn) {
        this.createOn = createOn;
    }

    public int getComment() {
        return comment;
    }

    public void setComment(int comment) {
        this.comment = comment;
    }

    public Long getId() {
        return id;
    }

    public String getKeywords() {
        return keywords;
    }

    @Field("goods_keywords")
    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    @Field("goods_id")
    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    @Field("goods_title")
    public void setTitle(String title) {
        this.title = title;
    }

}
